<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <title>教师发布公开课页面</title>
    <link href="../c/base.css" rel="stylesheet" type="text/css">
    <link href="../c/toefl.css" rel="stylesheet" type="text/css">
    <script src="../j/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="../class/js/castleCreate.js">
    </script>
</head>
<script>

</script>

<body>
<div class="doc910 ">
    <div class="flcb_cardMenu">
        <ul>
            <li class="on">
                <a href="###" target="infor" id="basic">基本信息</a>
            </li>
            <li>
                <a href="###" target="infor" id="desc">课程描述</a>
            </li>
            <li>
                <a href="###" target="infor" id="file">课程资料</a>
            </li>
        </ul>
    </div>

    <!--添加公开课区-->
    <form action="/addClassInfor" method="post" enctype="multipart/form-data">
        <div class="userCenter" style="display: block;" id="basicContent">
            <dl>
                <dt>课程标题：</dt>
                <dd><input type="text" class="userCenter_input" name="classTitle"></dd>
            </dl>
            <dl>
                <dt>上课日期：</dt>
                <dd><input type="date" class="userCenter_input" name="startDate"></dd>
            </dl>


            <dl>
                <dt>开始时间：</dt>
                <dd><input type="time" class="userCenter_input" name="startTime"></dd>
            </dl>
            <dl>
                <dt>结束时间：</dt>
                <dd><input type="time" class="userCenter_input" name="endTime"></dd>
            </dl>

            <dl>
                <dt>适合学员：</dt>
                <dd><input type="text" class="userCenter_input" name="fitPerson"></dd>
            </dl>


            <dl>
                <dt>课程分类：</dt>
                <dd >
                    <select class="userCenter_input" name="classType"  >
                        <option th:each="ct:${session.classTypes}" th:value="${ct.typeId}">[[${ct.typeName}]]</option>
                    </select>

                </dd>
            </dl>
            <dl>
                <dt>课程阶段：</dt>
                <dd>
                    <select class="userCenter_input" name="status">
                        <option value="0">报名阶段</option>
                        <option value="1">结束报名</option>
                        <option value="3">课程结束</option>
                    </select>

                </dd>
            </dl>


            <!--<dl>
                <dt></dt>
                <dd>
                    <a href="###" class="userCenter_save">保存</a>
                </dd>
            </dl>-->
        </div>


        <div class="userCenter" style="display: none;" id="descContent">
            <dl>
                <dt>课程讲师：</dt>
                <dd>
                    <input type="hidden" name="teacherId" th:value="${session.sess_user.teacher_id}"/>
                    <input th:value="${session.sess_user.user_name}" readonly="readonly"/>
                </dd>
            </dl>
            <dl>
                <dt>课程群：</dt>
                <dd>
                    <select class="userCenter_input" name="groupId">
                        <option value="1">java课程（1班）</option>
                        <option value="2">java课程（2班）</option>
                        <option value="3">java课程（3班）</option>
                    </select>

                </dd>
            </dl>
            <dl>
                <dt>宣传图：</dt>
                <dd>
                    <input name="upImage" type="file" class="userCenter_input">

                </dd>
            </dl>
            <dl>
                <dt>课程大纲：</dt>
                <dd><textarea cols="" rows="" name="classDesc" class="userCenter_t"></textarea>
                    <p class="userCenter_text">请输入2-100个字符</p>
                </dd>
            </dl>
            <dl>
                <dt>上课方式：</dt>
                <dd><textarea cols="" rows="" name="classMethod" class="userCenter_t"></textarea>
                    <p class="userCenter_text">请输入2-100个字符</p>
                </dd>
            </dl>
            <dl>
                <dt>听课指南：</dt>
                <dd><textarea cols="" rows="" name="classGuide" class="userCenter_t"></textarea>
                    <p class="userCenter_text">请输入2-100个字符</p>
                </dd>
            </dl>
            <dl>
                <dt></dt>
                <dd>
                    <button type="submit" class="userCenter_save">保存</button>
                </dd>
            </dl>
        </div>
    </form>


    <div class="userTX" style="display: none;" id="fileContent">
        <div class="flcb_cardDownload" th:each="c,l:${classInforPageInfo.list}">
            <h3 class="flcb_cardDownloadT">[[${#dates.format(c.startTime,'yyyy年MM月')}]][[${c.classTitle}]]精品课程下载</h3>
            <ul>
                <li th:each="a,b:${c.classAttachment}">
                    <span class="flcb_cardDownloadZl" th:text="'资料'+${b.count}">资料1</span>
                    <span class="flcb_cardDownloadBt">[[${#dates.format(c.startTime,'yyyy年MM月')}]][[${c.classTitle}]]精品课听说读写下载</span>
                    <a th:href="@{/classAttachmentDownload(attachmentUrl=${a.attachmentUrl})}"
                       class="flcb_cardDownloadXz">&nbsp;</a>
                </li>
            </ul>
            <div class="flcb_cardUpload">
                <form action="/addClassAttachment" method="post" enctype="multipart/form-data">
                    <input type="hidden" th:name="classId" th:value="${c.classAttachment[0].attachmentId}"/>
                    <input type="file" name="upAttachment"/>
                    <button type="submit">上传新资料</button>
                </form>
            </div>
        </div>
    </div>

</div>

</body>

</html>